{template header}
<div class="midder">
<div class="mc">

{template menu}

<div class="cleft">
<div class="category_group">
<div class="tags-nav">
        <ul class="tagsct">
           
         <li></li>
<!--{loop $list $key $value}-->
<!--{if $key<7}-->
<li><a  {if ($_GET['cat']==$value['cateid'])} class="active" {/if} href="javascript:;" onclick="ajax_cat('{$value['cateid']}',this)">$value['catename']</a></li>
<!--{/if}-->
<!--{/loop}-->
        </ul>
        <div class="tags-more-wrap" style="display: none;">
            <ul class="tags-more tagsct">
            <!--{loop $list $key $value}-->
                <!--{if $key>6}-->
               <li><a  {if ($_GET['cat']==$value['cateid'])} class="active"{/if}  style="cursor:pointer;" onclick="ajax_cat('{$value['cateid']}',this)">$value['catename']</a></li>
                <!--{/if}-->
               <!--{/loop}-->
             </ul>
        </div>
        <div class="btn-more act-slidedown" ref="off"  onclick="slide(this.ref,this)">
            <span class="arrow"></span>
        </div>
    </div>
</div>
<script>
function ajax_cat(id,obj){
	$('#group_content').html('<div style="text-align:center;font-size:14px;padding:20px;"><img src="{SITE_URL}public/images/bigload.gif" width="48" height="48"/></div>');
	$('#loding').hide();
	$('.active').removeClass('active');
	$(obj).addClass('active');
	$.post("{SITE_URL}index.php?app=group&cat="+id,{bac_d:'html'},function(res){
				$('#group_content').html(res);	
				
				$('#loding').show();
	 });	
}
function slide(ref,obj){
	if($(obj).attr('ref')=='off'){
	$('.tags-more-wrap').slideDown('fast',function(){callback(obj,'on')});
	}else{
	$('.tags-more-wrap').slideUp('fast',function(){callback(obj,'off')});
	}
	
	}
function callback(obj,ref){
	if(ref=='on'){
	$(obj).attr('ref',ref).removeClass('act-slidedown').addClass('act-slideup');
	}else{
	$(obj).attr('ref',ref).removeClass('act-slideup').addClass('act-slidedown');	
		}
	}	
</script>

<h2>全部标签</h2>

<div>
<div id="group_content">

<!--{loop $arrRecommendGroup $key $item}-->
<div class="sub-item">
<div class="pic">
<a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid]))}">
<img src="{$item[icon_48]}" alt="{$item[groupname]}" />
</a>
<div style="background:#F0F0F0;text-align:center;padding:3px 0;">

{if in_array($item['groupid'],$myGroup)}
已加入
{else}
<a href="{SITE_URL}{tsUrl('group','do',array('ts'=>'join','groupid'=>$item['groupid']))}">+加入</a>
{/if}

</div>
</div>
<div class="info">
<a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a>  <font color="#999999">{$item[count_user]}人加入</font>             
<p>{$item[groupdesc]}</p>
</div>
</div>
<!--{/loop}-->



<div class="clear"></div>
<div class="page">{$pageUrl}</div>
</div>
</div>
</div>

<div class="cright">


<!--{if $TS_APP[options][iscreate]==0 || $TS_USER[user][isadmin]==1}-->
<p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('tbshare','share')}">我要分享</a></p>
<!--{/if}-->


<div class="clear"></div>

{php doAction('group_index_right_footer',null,'300')}

</div>
</div>
</div>
{template footer}